<template>
    <div>
         <el-dialog class="car-owner-add" title="照片查看" :visible.sync="dialogVisible" width="800px" :before-close="handleClose">
             <div v-for="(item,index) in photoList" :key="index" style="width:49%;display:inline-block;border: 1px solid #e0e0e0;margin-right:5px">
                 <img :src="_buillStaticPath(item.path)" alt="" style="width:100%">
                 <div style="text-align:center">
                     <h5>上传时间:{{_formatTime(item.createTime)}}</h5>
                 </div>
             </div>
         </el-dialog>
    </div>
</template>
<script>
import * as PhotoApi from '@/api/business/photo'
export default {
    data(){
        return{
            dialogVisible:false,
            photoList:[]
        }
    },
    methods:{
        show(photoId){
            PhotoApi.queryByPhotoId(photoId).then(res=>{
                if(res.data.code === 0){
                    this.photoList = res.data.data
                    this.dialogVisible = true
                }
            })
        },
        handleClose(){
            this.dialogVisible = false
        }
    }
}
</script>